package org.syh.boyangfighthealthclub.entity;


/**
 * @ Author: Ben
 * @ Date: 2020/2/21 15:45
 * @ Entity: 用户实体
 */
public class User{


    /**
     * id
     */
    private Integer id;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 账号
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 性别
     */
    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 角色
     */
    private String role;

    public User(Integer id, String nickname, String username, String password, String email, String sex, Integer age, String role) {
        this.id = id;
        this.nickname = nickname;
        this.username = username;
        this.password = password;
        this.email = email;
        this.sex = sex;
        this.age = age;
        this.role = role;
    }

    public User(String nickname, String username, String password, String email, String sex, Integer age, String role) {
        this.nickname = nickname;
        this.username = username;
        this.password = password;
        this.email = email;
        this.sex = sex;
        this.age = age;
        this.role = role;
    }

    public User(int id, String nickname, String username, String password, String email, String sex, int age) {
        this.id = id;
        this.nickname = nickname;
        this.username = username;
        this.password = password;
        this.email = email;
        this.sex = sex;
        this.age = age;
    }

    public User(String nickname, String userName, String password, String email, String sex, Integer age) {
        this.nickname = nickname;
        this.username = username;
        this.password = password;
        this.email = email;
        this.sex = sex;
        this.age = age;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", role='" + role + '\'' +
                '}';
    }
}
